<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>我的收藏</title>
    <link rel="stylesheet" type="text/css" href="../../static/css/vipcenter.css">
    <script src="../../static/js/jquery-1.8.3.min.js"></script>
    <script src="../../static/js/public.js"></script>
    <script src="../../static/js/jquery.pagination.min.js"></script>
    <script src="../../static/js/user_center.js"></script>
</head>

<body>
<!--个人中心首页 -->
<div class="thetoubu">
    <!--头部-->
    <div class="thetoubu1">
        <b>
            {% if data.user_info.avatar_url %}
                <img src="{{ data.user_info.avatar_url }}"/>
            {% else %}
                <img src="../../static/favicon.ico"/>
            {% endif %}
        </b>
        <em>{{ data.user_info.nick_name }}</em>
        <em>欢迎来到会员中心</em>
        <a href="/user/goods_addr">地址管理</a>
        <a href="/user/base_user">修改资料</a>
        <h5>账户安全</h5>
        {% if data.user_info.status==1 and data.user_info.mobile_status ==1 %}
            <strong>高</strong>
            <span>
        	<p style=" width:100%"></p>
        </span>
        {% elif data.user_info.status==1 or data.user_info.mobile_status ==1 %}
            <strong>中</strong>
            <span>
        	<p style=" width:50%"></p>
        </span>
        {% else %}
            <strong>低</strong>
            <span>
        	<p style=" width:27%"></p>
        </span>
        {% endif %}
        <a href="#">安全等级提升</a>
        {% if data.user_info.mobile_status==1 %}
            <em style=" padding-right:2px">手机</em>
            <a href="#" style=" padding-left:2px; float:left; display:block; color:#f00" title="点击绑定">已绑定</a>
        {% else %}
            <em style=" padding-right:2px">手机</em>
            <a href="/user/binding" style=" padding-left:2px; float:left; display:block; color:#f00"
               title="点击绑定">未绑定</a>
        {% endif %}
        <div>
            <a href="/">返回商城</a>
        </div>

    </div>
    <!--详细列表-->
    <div class="xiangxilbnm">
        <!--left-->
        <div class="liefyu">
            <h2>交易管理</h2>
            <div class="conb">
                <a href="/user/my_shopcar">我的购物车</a>
                <a href="#">实物交易订单</a>
                <a href="#">虚拟兑换订单</a>
                <a href="/user/collection">我的收藏</a>
                <a href="#">交易评价/晒单</a>
                <a href="#">账户余额</a>
                <a href="#">我的积分</a>
                <a href="#">我的代金卷</a>
            </div>
            <h2>客户服务</h2>
            <div class="conb">
                <a href="#">退款及退货</a>
                <a href="#">交易投诉</a>
                <a href="#">商品咨询</a>
                <a href="#">违规举报</a>
                <a href="#">平台客服</a>
                <a href="#">商家入驻</a>
            </div>
            <h2>资料管理</h2>
            <div class="conb">
                <a href="/user/base_user">账户信息</a>
                <a href="/account">账户安全</a>
                <a href="/user/goods_addr">收货地址</a>
                <a href="/user/pic_info">我的头像</a>
                <a href="/passport/new_password">修改密码</a>
                <a href="/user/zfmm">支付密码</a>
                <a href="/user/binding">手机绑定</a>
                <a href="/user/e_mail">邮箱绑定</a>
            </div>
        </div>
        <script type="text/javascript">
            $(function () {//第一步都得写这个
                $(".liefyu h2").click(function () {//获取title，并且让他执行下面的函数
                    $(this)/*点哪个就是哪个*/.next(".conb")/*哪个标题下面的con*/.slideToggle()/*打开/折叠*/.siblings/*锁定同级元素*/(".con").slideUp()/*同级元素折叠起来*/
                })
            })
        </script>
        <!--right-->
        <div class="zuirifip">
            <!--商品收藏和店铺收藏-->
            <div class="locfre">
                <a href="#" class="zuliyesi">商品收藏</a>
                <a href="#">店铺收藏</a>
                <a href="#" style=" float:right">全部删除</a>
            </div>
            <script>
                $(function () {
                    $(".locfre a").click(function () {
                        $(this).addClass("zuliyesi").siblings().removeClass("zuliyesi")
                    })
                })
            </script>
            <!--收藏的商品列表-->
            <div class="feizhoum">
                <ul>
                    {% for goods in data.collections %}
                        <li>
                            <img src="{{ goods.g_image }}"/>
                            <div hidden>{{ goods.g_id }}</div>
                            <span>
                        	<a href="#">{{ goods.g_name }}</a>
                            <em>{{ goods.g_price }}元</em>
                            <a href="#"
                               style="display:block; width:40px; height:20px; text-align:center; line-height:20px; font-size:12px; color:#fff; background:#09f; margin-top:12px"
                               class="remove_collect">删除</a>
                        </span>
                        </li>
                    {% endfor %}
                </ul>
                <!--收藏商品列表结束-->
            </div>
            <div id="pagination" class="page_collect"></div>
            <script>
                $(function () {
                    $(".page_collect").pagination({
                        currentPage: {{ data.current_page }},
                        totalPage: {{ data.total_page }},
                        callback: function (current) {
                            window.location.href = '/user/collection?p=' + current
                        }
                    });
                });
            </script>
        </div>
        <!--right结束-->
    </div>
    <!--详细列表结束-->
</div>
<!--个人中心结束-->


</body>
</html>
